from flask import Flask, flash, jsonify, Response, render_template, request, session, redirect, url_for
import simplejson as json
import hashlib
from apps.index import app, db


@app.route("/", methods=["GET", "POST"])
def index():
    return render_template("index.html", nav='index', title='Long')


@app.route("/article", methods=["GET", "POST"])
def article():
    return render_template("index/article.html", nav='article', title='文章专栏')


@app.route("/mixed_pic", methods=["GET", "POST"])
def mixed_pic():
    return render_template("index/mixed_pic.html", nav='mixed_pic', title='杂七杂八')


@app.route("/timeline", methods=["GET", "POST"])
def timeline():
    return render_template("index/timeline.html", nav='timeline', title='点点滴滴')


@app.route("/about", methods=["GET", "POST"])
def about():
    return render_template("index/about.html", nav='about', title='关于本站')
